﻿<Window x:Class="WPF_QC.QA_View.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:WPF_QC"
        xmlns:vm="clr-namespace:WPF_QC.QA_View"
        Title="MainWindow" Height="600" Width="800">

    <Window.Resources>
        <local:BoolToVisibilityConverter x:Key="boolConverter"/>
    </Window.Resources>

    <Grid>
        <Menu Grid.Row="0" Grid.RowSpan="3">
            <MenuItem FontSize="16" Header= "_My Menu" Height="30" Width="95" >
                <MenuItem Header="_Measurement Reports" Command="{Binding PageParameterCommand}" 
                          CommandParameter="{x:Static local:PageTitles.MeasurementReports}" />
                <MenuItem Header="_Running Machines Status" Command="{Binding PageParameterCommand}" 
                          CommandParameter="{x:Static local:PageTitles.RunningMachinesStatus}" />
                <MenuItem Header="_Measurement Entry Form" Command="{Binding PageParameterCommand}" 
                          CommandParameter="{x:Static local:PageTitles.MeasurementEntry}" />
                <MenuItem Header="_Home" Command="{Binding PageParameterCommand}" 
                          CommandParameter="{x:Static local:PageTitles.HomePage}" />
            </MenuItem>
        </Menu>
        <DockPanel  Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3" Name="NavigationDockPanel" 
                    HorizontalAlignment="Left" LastChildFill="False" VerticalAlignment="Top">
            <ContentControl Panel.ZIndex="0" Content="{Binding CurrentPageViewModel}" />
        </DockPanel>
        <StatusBar x:Name="mainWindowStatusBar" Margin="0,543,10,0" HorizontalAlignment="Center" Width="772">
            <TextBlock x:Name="loginStatusTextBlock" Width="163" Height="46" FontSize="14" FontStyle="Italic" Text="Today is: "/>
            <TextBlock x:Name="dateTextBlock" Width="169" Height="46" FontSize="14" FontStyle="Italic" Text="You are logged in as: "/>
            <TextBlock x:Name="statusMsgTextBlock" Width="216" Height="48" FontSize="14" FontStyle="Italic" Text="Today's  Messages:"/>
        </StatusBar>
    </Grid>
</Window>